#pragma once
#include <string>

class CProcessManager
{
public:
    CProcessManager();
    ~CProcessManager();
    static CProcessManager* getInstance() 
    {
        if (m_pInstance == nullptr)
        {
            m_pInstance = new CProcessManager;
        }
        return m_pInstance;
    }
    bool closeProcess(DWORD vProcessId);
    DWORD getOrCreateProcess(const wchar_t* vPath, wchar_t* vCommandLine = NULL);
    DWORD getProcessIDByName(const wchar_t* vProcessName);

private:
    static CProcessManager* m_pInstance;
};
